package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CoursePreviewDto;
import com.xuecheng.content.model.po.CoursePublish;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.File;

/**
 * @author: Hes
 * @description 课程预览接口
 * @date: 2023/6/23 17:50
 */

public interface CoursePublishService {
    /**
     * 课程预览
     *
     * @param courseId
     * @return
     */
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);

    /**
     * 课程审核
     *
     * @param courseId
     */
    public void commitAudit(Long companyId, Long courseId);

    /**
     * 课程发布
     *
     * @param courseId
     */
    public void coursepublish(Long companyId, Long courseId);

    /**
     * 页面静态化
     *
     * @param courseId
     * @return
     */
    public File generateCourseHtml(Long courseId);

    /**
     * 上传静态化网页
     *
     * @param courseId
     * @param file
     */
    public void uploadCourseHtml(Long courseId, File file);

    /**
     * 查询课程发布信息
     *
     * @param courseId
     * @return
     */
    public CoursePublish getCoursepublish(Long courseId);

    /**
     * 发查询缓存中的课程信息
     *
     * @param courseId
     * @return
     */
    public CoursePublish getCoursePublishCache(Long courseId);

}
